package com.harmony.pilot.agent.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ToolResult {
    private boolean success;
    private String message;
    private Object data;
    private String error;
    
    public static ToolResult success(String message) {
        return ToolResult.builder()
            .success(true)
            .message(message)
            .build();
    }
    
    public static ToolResult success(String message, Object data) {
        return ToolResult.builder()
            .success(true)
            .message(message)
            .data(data)
            .build();
    }
    
    public static ToolResult error(String error) {
        return ToolResult.builder()
            .success(false)
            .error(error)
            .build();
    }
}

